package com.example.cursor_service;

import com.example.cursor_orm.model.UserLog;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.List;

@Service
public interface UserLogService {
    UserLog createLog(UserLog log);
    UserLog getLogById(Integer id);
    boolean deleteLog(Integer id);
    List<UserLog> getLogList(int page, int size);
    List<UserLog> getLogsByUserId(Integer userId);
    List<UserLog> getLogsByAction(String action);
    List<UserLog> getLogsByTimeRange(LocalDateTime start, LocalDateTime end);
    int deleteLogsBefore(LocalDateTime beforeTime);
} 